<template>
    <header>
            <div class="headtop">
                <div class="headtop1">
                    <div class="headtopImg">
                        <img :src='seller.avatar' alt="">
                    </div>
                    <div class="headtopCaption ">
                        <div class="headtopCaptionTop">
                            <div class="headtopCaptionTopImg">
                                <img src="../assets/img/brand@2x.png" alt="">
                                 {{seller.name}}
                            </div>
                        </div>
                        <div class="headtopCaptionContent">
                            {{seller.description}}/{{seller.deliveryTime}}分钟送达
                        </div>
                        <div class="headtopCaptionBottom">
                                <img src="../assets/img/decrease_1@2x.png" alt="">
                            在线支付满{{seller.deliveryTime}}减{{seller.deliveryPrice}} , 满{{seller.rankRate}}减{{seller.ratingCount}}
                        </div>
                    </div>
                </div>
                <div class="headerButton"> {{seller.deliveryPrice}}个 ></div>
            </div>
            <div class="headbottom">
                <img src="../assets/img/bulletin@2x.png" alt="">
                <span class="headbottom2">{{seller.bulletin}}</span>
                <span class="headbottom3">></span>
            </div>
        </header>
</template>

<script>
export default {
  data(){
    return{
      seller:[]
    }
  },
  created:async function(){
  let {data} = await this.$http.get("api/getdata")
  this.seller = data.seller
  }
}
</script>

<style scoped>
header {
  width: 100%;
  height: 2.68rem;
  background-color: #61666c;
}

.headerButton {
  position: absolute;
  right: 0.24rem;
  bottom: 0.16rem;
  height: 0.48rem;
  width: 0.96rem;
  background-color: rgba(7, 17, 27, 0.2);
  border-radius: 0.36rem;
  text-align: center;
  line-height: 0.48rem !important;
  vertical-align: middle;
}

.headtop {
  width: 100%;
  height: 2rem;
  overflow: hidden;
  position: relative;
}

.headtop1 {
  width: 5rem;
  height: 1.5rem;
  float: left;
  margin-top: 0.48rem;
  margin-left: 0.48rem;
}

.headtopImg {
  width: 1.28rem;
  height: 1.5rem;
  float: left;
}
.headtopImg img {
  width: 1.28rem;
  height: 1.28rem;
  border-radius: 0.04rem;
}

.headtopCaption {
  width: 3.72rem;
  height: 100%;
  float: left;
  padding-top: 0.04rem;
  padding-left: 0.32rem;
}

.headtopCaptionTopImg {
  font-size: 0.32rem;
  color: rgb(255, 255, 255);
  font-weight: bold;
  line-height: 0.36rem;
  width: 4rem;
  margin-bottom: 0.16rem;
}
.headtopCaptionTopImg img {
  display: block;
  float: left;
  width: 0.6rem;
  height: 0.36rem;
  margin-right: 0.12rem;
}

.headtopCaptionContent {
  font-size: 0.24rem;
  color: rgb(255, 255, 255);
  font-weight: 200;
  line-height: 0.24rem;
  margin-bottom: 0.2rem;
}

.headbottom {
  width: 100%;
  min-height: 60px;
  height: -webkit-calc(100% - 2rem);
  height: -moz-calc(100% - 2rem);
  height: calc(100% - 2rem);
  font-size: 0.2rem;
  color: rgb(255, 255, 255);
  background-color: rgba(7, 17, 27, 0.2);
  padding: 0 0.24rem;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.headbottom img {
  display: block;
  width: 0.44rem;
  height: 0.24rem;
  margin-right: 0.08rem;
  float: left;
}
.headbottom .headbottom2 {
  display: block;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
.headbottom .headbottom3 {
  display: block;
  width: 0.32rem;
  height: 0.32rem;
}
.headtopCaptionBottom{
  width: 5rem;
}
.headtopCaptionBottom, .headerButton {
  font-size: 0.2rem;
  color: rgb(255, 255, 255);
  font-weight: 200;
  line-height: 0.24rem;
}
.headtopCaptionBottom>img, .headerButton img {
  display: inline-block;
  width: 0.24rem;
  height: 0.24rem;
  float: left;
  margin-right: 0.08rem;
}
</style>